package com.javasm.crm.domin.entity.marketingActivity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author llyp
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@TableName("eventsManagement_promotion")
public class Promotion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "promotion_id", type = IdType.AUTO)
    private Integer promotionId;

    /**
     * 活动名字
     */
    private String promotionName;

    /**
     * 活动开始时间
     */
    @TableField("promotion_startTime")
    private LocalDateTime promotionStarttime;

    /**
     * 活动结束时间
     */
    @TableField("promotion_stopTime")
    private LocalDateTime promotionStoptime;

    /**
     * 活动类型
     */
    private Integer promotionType;

    /**
     * 价格生效时间
     */
    @TableField("price_takeTime")
    private LocalDateTime priceTaketime;

    /**
     * 价格失效时间
     */
    @TableField("price_loseTime")
    private LocalDateTime priceLosetime;

    /**
     * 上传文件
     */
    private String promotionFile;

    /**
     * 申请人
     */
    private String promotionApplicant;

    /**
     * 申请时间
     */
    @TableField("promotion_applicantTime")
    private LocalDateTime promotionApplicanttime;

    /**
     * 备注
     */
    private String promotionRemarks;

    /**
     * 审批人
     */
    private String promotionApprover;

    /**
     * 审批时间
     */
    @TableField("promotion_approverTime")
    private LocalDateTime promotionApprovertime;

    /**
     * 审批状态
     */
    @TableField("promotion_approvalStatus")
    private Integer promotionApprovalstatus;

    /**
     * 审批意见
     */
    @TableField("promotion_approverIdea")
    private String promotionApproveridea;

    /**
     *商品id
     */
    @TableField("good_Id")
    private Integer goodId;

    /**
     * 商品名字
     */
    private String goodName;

    /**
     * 商品库存
     */
    private Integer goodStock;

    /**
     * 促销数量
     */
    private Integer promotionNum;

    /**
     * 市场价
     */
    private Double marketPrice;

    /**
     * 商场价
     */
    private Double storePrice;

    /**
     * 活动价
     */
    private Double promotionPrice;

    /**
     * 调价方式
     */
    private Integer adiustPriceWay;

    /**
     * 百分比
     */
    private Double percent;
}
